package kun;

public class Fire extends FlyObject {

    int dir;

    public Fire(int hx, int hy, int dir) {
        img = App.getImg("/kun/img/fire.png");
        w = img.getWidth()/3;
        h = img.getHeight()/3;
        x = hx - w / 2;
        y = hy;
        this.dir = dir;
    }

    public void move() {
        if (dir == 0) {
            x -= 1;
            y -= 10;
        } else if (dir == 1) {
            y -= 10;
        } else if (dir == 2) {
            x += 1;
            y -= 10;
        }

    }
}
